package com.briup.day03;

/**
 * @author lining
 * @date 2024/1/10 14:53
 */
public class Test7 {

    public static void method(int a){
        a = 5;
        System.out.println(a);// 1  5
    }

    public static void main(String[] args) {
         //int类型局部变量
         int a = 1;
         int b = 2;
         method(a);
         //  1
        System.out.println(a);

        String msg = a > b ? "a>b":"a<=b";

        int num = a > b ? 1 : 3;
        // if  else  a= 1 b=2
        int num2 = a > b ? a++ : b + 4;
        System.out.println(num2); //2+4

    }

}
